package com.ehome.poct.base.device.service;

import com.ehome.core.service.AbstractCrudServiceImpl;
import com.ehome.poct.base.api.dto.device.DeviceBindDTO;
import com.ehome.poct.base.api.virtual.device.DeviceBindService;
import com.ehome.poct.base.device.repository.DeviceBindRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
/**
 * 设备绑定表SerivceImlp
 *
 * @author wuyingchao
 * @Date 2022-07-14 14:15
 */
@Service
@AllArgsConstructor
public class DeviceBindServiceImpl extends AbstractCrudServiceImpl<DeviceBindDTO> implements DeviceBindService {
    private final DeviceBindRepository bindRepository;

    @Override
    public DeviceBindDTO getLast(String sno) {
        return bindRepository.getLast(sno);
    }
}